package tgc.edu.library.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import tgc.edu.library.custom.CommonService;
import tgc.edu.library.entity.Record;
import tgc.edu.library.repository.RecordRepository;


@Service
public class RecordService extends CommonService<Record, Integer>{

	@Autowired
	private RecordRepository reDao;
	
	public void empty() {
		reDao.empty();
		
	}

	public Page<Record> findByDate(String date,Pageable pageable) {
		return reDao.findByDate(date,pageable);
		
	}

	
}
